{% extends "common/layout.html" %}


{% block content %}

    <script type="text/javascript" src="/static/js/echarts.min.js"></script>
    <script type="text/javascript" src="/static/js/themes/vintage.js"></script>

    <div class="row">
        <div class="col-lg-8">
            <div class="col-sm-4">
                <div class="input-group">
                    <span class="input-group-addon">数据日期</span>
                    <a class='input-group date' id='datetimepicker'>
                        <input type='text' class="form-control" id="datadate" name="datadate" value="{{ datestr }}"/>
                        <span class="input-group-addon">
		                    <span class="glyphicon glyphicon-calendar"></span>
		                </span>
                    </a>
                </div>
            </div>

            <script type="text/javascript">
                $('#datetimepicker').datetimepicker({
                    format: 'YYYY年MM月',
                    locale: moment.locale('zh-cn'),

                }).on('dp.change', function (e) {

                    var date = $("input[name=datadate]").val();
                    var year = date.substring(0,4);
                    var month= date.substring(5,7)
                    var shortdate=year+month
                    var part="{{ part }}"
                     document.location.href=part+"?date="+shortdate;
                });


            </script>
        </div>
<!--        <div class="col-lg-4">-->
<!--            <div class="btn-group" role="group" aria-label="...">-->
<!--                <a type="button" class="btn btn-primary" href="{{ buildUrl('/check/total')+"?date="+datestr }}">概况</a>-->
<!--                <a type="button" class="btn btn-default" href="{{ buildUrl('/check/leader') +"?date="+datestr }}">总助及以上详情</a>-->
<!--                <a type="button" class="btn btn-default" href="{{ buildUrl('/check/overtime') +"?date="+datestr }}">加班时长详情</a>-->
<!--                <a type="button" class="btn btn-default" href="{{ buildUrl('/check/cq') +"?date="+datestr }}">出勤情况详情</a>-->
<!--                <a type="button" class="btn btn-default" href="{{ buildUrl('/check/yc') +"?date="+datestr }}">考勤异常详情</a>-->
<!--            </div>-->
<!--        </div>-->

    </div>
    <div class="container-fluid" style="min-height: 700px;margin-top: 20px;">
        {% block detail %} {% endblock %}
    </div>

{% endblock %}



